<?php load_partial('post') ?>

<h2 id="comments">Comments</h2>

<?php if ($post->comments): ?>
  <ol>
    <?php foreach ($post->comments as $comment): ?>
      <li>
        <?php load_partial('comment') ?>
      </li>
    <?php endforeach ?>
  </ol>
<?php else: ?>
  <p class="message">No comments.</p>
<?php endif ?>

<h2>Leave A Comment</h2>

<form method="post" action="<?php echo getURL("posts/save_comment/$post->id") ?>">
  <input type="text" name="name" /> name<br />
  <textarea name="body" rows="8" cols="40"></textarea><br />
  <input type="submit" value="Say It" accesskey="s" />
</form>